/**
 * Created by Administrator on 2016/8/11.
 */
"use strict";
swan_pc
    .factory("UserInfoManage",function($resource){
        return $resource('api/users/:login',{login:"@login"},{
            'update':{
                method: 'PUT'
            }
        })
    })
    .factory("AccountInfoManage",function($resource){
        return $resource('api/account',{
            'save':{
                method: 'POST'
            }
        })
    })
    .factory("AccountPasswordChange",function($resource){
        return $resource('api/account/change_password',{
            'save':{
                method: 'POST'
            }
        })
    })
    .factory("AccountPasswordInit",function($resource){
        return $resource('api/account/reset_password/init',{
            'save':{
                method: 'POST'
            }
        })
    })
    .factory("AccountPasswordInitFinish",function($resource){
        return $resource('api/account/reset_password/finish',{
            'save':{
                method: 'POST'
            }
        })
    })
